import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '/main',
      component: require('../components/main.vue').default,
      children:[
        {
          path:'/',
          name:'/home',
          component: require('../components/home.vue').default
        },
        {
          path:'/member',
          name:'/member',
          component: require('../components/member.vue').default
        },
        {
          path:'/daili',
          name:'/daili',
          component: require('../components/daili.vue').default
        },
        {
          path:'/video',
          name:'/video',
          component: require('../components/video.vue').default
        }
      ]
    },
    {
      path: '/coinlog',
      name: '/coinlog',
      component: require('../components/coinlog.vue').default
    },
    {
      path: '/password',
      name: '/password',
      component: require('../components/password.vue').default
    },
    {
      path: '/buycard',
      name: '/buycard',
      component: require('../components/buycard.vue').default
    },
    {
      path: '/cardlist',
      name: '/cardlist',
      component: require('../components/cardlist.vue').default
    },
    {
      path: '/cardorder',
      name: '/cardorder',
      component: require('../components/cardorder.vue').default
    },
    {
      path: '/paymoney',
      name: '/paymoney',
      component: require('../components/paymoney.vue').default
    },
    {
      path: '/login',
      name: '/login',
      component: require('../components/login.vue').default
    },
    {
      path: '/register',
      name: '/register',
      component: require('../components/register.vue').default
    },
    {
      path: '/editvideo',
      name: '/editvideo',
      component: require('../components/editvideo.vue').default
    },
    {
        path: '/links',
        name: '/links',
        component: require('../components/links.vue').default
    }
  ]
})
